Xceed Toolkit Plus for WPF v4.6 Documentation
ParsePercent Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace > NumericUpDown<T> Class : ParsePercent Method
The string representation of the number to convert.
An IFormatProvider that supplies culture-specific parsing information about text.
Converts the string representation of a number to its equivalent as a decimal value using the specified culture-specific format information.
Syntax
'Declaration
 
Protected Shared Function ParsePercent( _
   ByVal text As String, _
   ByVal cultureInfo As IFormatProvider _
) As Decimal
'Usage
 
Dim text As String
Dim cultureInfo As IFormatProvider
Dim value As Decimal
 
value = NumericUpDown(Of T).ParsePercent(text, cultureInfo)
protected static decimal ParsePercent( 
   string text,
   IFormatProvider cultureInfo
)

Parameters

text
The string representation of the number to convert.
cultureInfo
An IFormatProvider that supplies culture-specific parsing information about text.

Return Value

The equivalent of text as a decimal value.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NumericUpDown<T> Class
NumericUpDown<T> Members